package 慕课网;
public class books {
    private String bookName;
    private String booker;
    private String press;
    private double price;
    public void setBookName(String bookName){
        this.bookName=bookName;
    }
    public void setBooker(String booker){
        this.booker=booker;
    }
    public void setPress(String press){
        this.press=press;
    }
    public void setPrice(double price) {
        this.price=price;
    }
    public String getBookName(){
        return "书名："+this.bookName;
    }
    public String getBooker(){
        return "作者："+this.booker;
    }
    public String getPress() {
        return "出版社："+this.press;
    }
    public double getPrice()
    {
        if(price<10) {return 10.0;}
        return this.price;
    }
}
